//
//  CountryCodeCell.m
//  Btpin
//
//  Created by Vic on 2020/5/24.
//  Copyright © 2020 Vic. All rights reserved.
//

#import "CountryCodeCell.h"

@interface CountryCodeCell ()
{
    UILabel *textLbl;
    UILabel *detailLbl;
}
@end

@implementation CountryCodeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initUI];
    }
    return self;
}
- (void)initUI {
    textLbl = [UIToolsControl initLabelWithFrame:CGRectMake(ScalePS(15), 0, WIDTH-ScalePS(15), 50) text:nil textColor:THEMECOLOR_OF_TEXT_666666 font:Font_15];
    [self.contentView addSubview:textLbl];
    
    detailLbl = [UIToolsControl initLabelWithFrame:CGRectMake(0, 0, WIDTH-30, 50) text:nil textColor:THEMECOLOR_OF_TEXT_666666 font:Font_13];
    detailLbl.backgroundColor = COLOR_OF_CLEAR;
    detailLbl.textAlignment = NSTextAlignmentRight;
    [self.contentView addSubview:detailLbl];
}
- (void)reloadData:(PublicCategoryElementModel *)model {
    textLbl.text = model.name;
    detailLbl.text = model.code;
}

- (void)awakeFromNib {
    [super awakeFromNib];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
